<template>
  <div class="school">
      <h2>{{msg}}</h2>
      <h2 @click="showName">学校名称：{{name}}</h2>
      <h2>学校地址：{{address}}</h2>

  </div>
</template>

<script>

//因为是分别暴露则
// import {hunhe, mixin} from "@/mixin";

export default {

  // eslint-disable-next-line vue/multi-word-component-names
  name: "Student",
  data(){
    return{
      address:'重庆市巴南区红光大道',
      name:'重庆理工大学',
      //若mixin里有x，则看自己有的data里的x的值
      x:666
    }
  },
 // 局部混合
 // mixins:[mixin,hunhe]


}
</script>

<style scoped>
    .school{
      background-color: skyblue;
    }
</style>